<%@ page language="java" pageEncoding="UTF-8"%>  
  <% String appName = request.getContextPath(); %>
<script type="text/javascript">  
<!--  
function reloadVerifyCode(){  
    document.getElementById('verifyCodeImage').setAttribute('src', '${pageContext.request.contextPath}/mvc/loginCtrl/getVerifyCodeImage');  
}  
//-->  
</script>
<body>
 <div style="width:400px;height:400px;margin:400px auto;"> 
<div style="color:red; font-size:22px;">${message_login}</div>  
  
<form action="<%=appName %>/mvc/loginCtrl/login" method="POST">  
    姓名：<input type="text" name="username"/><br/>  
    密码：<input type="text" name="password"/><br/>  
    验证：<input type="text" name="verifyCode"/>  
         &nbsp;&nbsp;  
         <img id="verifyCodeImage" onclick="reloadVerifyCode()" src="<%=appName %>/mvc/loginCtrl/getVerifyCodeImage"/><br/>  
    <span style="margin-top:30px;padding-left:100px;line-height:50px;"><input type="submit" value="确认"/></span>
    </div>
   
</form>  
</body> 